package group.program.Service.impl;

import group.program.Service.RegisterService;
import group.program.mapper.RegisterMapper;
import group.program.pojo.trafficPojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegisterServiceImpl implements RegisterService {
    @Autowired
    private RegisterMapper registerMapper;

    @Override
    public int register(User user) {
        return registerMapper.register(user);
    }

    @Override
    public String isUserNameExist(String userName) {
        return registerMapper.isUserNameExist(userName);
    }
    @Override
    public String isFullNameExist(String fullName) { return registerMapper.isFullNameExist(fullName); }
    @Override
    public String isPhoneNumberExist(String userName) {
        return registerMapper.isPhoneNumberExist(userName);
    }

    @Override
    public String isEmailExist(String email) {
        return registerMapper.isEmailExist(email);
    }
}
